package cn.cy.behavior.chain.pattern;

/**
 * @author yangxq
 * @desc
 * @date 2025-05-09
 */
public abstract class Handler {

    protected Handler nextHandler;

    public void setNext(Handler nextHandler) {
        this.nextHandler = nextHandler;
    }

    public abstract void handleRequest(Request request);

}
